﻿using System;

public class Account:IDeposit
{
    private Customer customer;
    private decimal balance;
    private decimal interest;
    private int NumberOfMonths { get; set; }
    protected Account(Customer customer, decimal balance, decimal interest)
    {
        this.customer = customer;
        this.balance = balance;
        this.interest = interest;

    }

    protected decimal Balance
    {
        get { return this.balance; }
        set { this.balance = value; }
    }

    public decimal Interest
    {
        get { return this.interest; }
    }

    public Customer Customer
    {
        get { return this.customer; }
        set { this.customer = value; }
    }

    public virtual void Deposit(decimal money)
    {
    }
    public virtual void Drow(decimal money)
    {
    }
    public virtual decimal CalculateInterest()
    {
        return NumberOfMonths * this.interest;
    }
}